#pragma once
#include "lua_api.h"

using regfunc = int (*)(uintptr);
struct LuaReg {
	const char* name;
	regfunc func;
};

static const LuaReg regs[]{
	{"msgbox1", lua_msgbox1},
	//{"msgbox2", lua_msgbox2},
	//{"jump", lua_jump},
	//{"test_get_param", lua_test_get_param},
	//{"test_ret_val", lua_test_ret_val},
	//{"write_file", lua_write_file},
	//{"write_file_raw", lua_write_file_raw},
	//{"dbgprint", lua_dbgprint},
	{0, 0},
};

void lua_reg();

